<?php


class C {
	const TYPE_INT = 1;
	const TYPE_DOUBLE = 2;
	const TYPE_STRING = 3;
	const TYPE_ARRAY = 4;


	const ST_OK = 1;
	const ST_FROZEN = 2;
	const ST_DELETE = -1;


	const VERSION_INIT = 1;

	private static $_typeTextList = array(
		self::TYPE_STRING => "string",
		self::TYPE_INT => "int",
		self::TYPE_DOUBLE => "double",
		self::TYPE_ARRAY => "array"
	);

	public static function getTypeText($type) {
		$type = isset($_typeTextList[$type]) ? $type : self::TYPE_STRING;
		return self::$_typeTextList[$type];
	}

	public static function getTypeTextList() {
		return self::$_typeTextList;
	}
}
